<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试报告</title>
        <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.5.0/css/bootstrap.min.css">
    <script src=" https://cdn.staticfile.org/jquery/2.0.0/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/echarts/5.1.2/echarts.min.js"></script>
    <!--    页面样式-->
    <style type="text/css">
        /*标题样式*/
        .title {
            width: auto;
            height: 60px;
            text-align: center;
            font: bolder 38px/60px "Microsoft YaHei UI";
        }

        /*汇总信息样式*/
        .summary {
            width: 90%;
            position: absolute;
            top: 120px;
            margin-left: 5%;

        }

        .text-left {
            font: bolder 20px/30px "Microsoft YaHei UI";
        }

        .left {
            width: 50%;
            float: left;

        }

        .right {
            width: 50%;
            float: right;

        }

        .desc {
            float: left;
            width: 100%;
        }

        .list-group-item span {
            font: normal 16px/38px "Microsoft YaHei UI";
            padding: 30px;

        }

        .list-group-item {
            position: relative;
            display: block;
            padding: .4rem 1.25rem;
            background-color: #fff;
            border: 1px solid rgba(0, 0, 0, .125);
        }

        /* 执行信息样式   */
        .test_info {
            width: 90%;
            position: absolute;
            top: 900px;
            margin-left: 5%;

            color: #28a745 !important;
        }

        .table td, th {
            border: solid 2px rgba(9, 122, 51, 0.11) !important;
            padding: 0;
            line-height: 40px;
            text-align: center;

        }


        select {
            border: 0;
            padding: 0;
            margin: 0;
            height: 2em;
            width: 8em;
            margin-left: 2em;
        }

        option {
            text-align: center;
            height: 36px;
            font: none 18px/36px "Microsoft YaHei UI";
            color: #28a745 !important;
        }

        .test_log {
            background: rgba(163, 171, 189, 0.15);
            width: 100%;
            height: 50px;
            border-top: none;
            border-bottom: none;
            display: none;
            text-align: left;
        }

        .test_log td {
            text-align: left;
            height: 30px;
            margin: 0;
            padding-left: 3em;
            padding-right: 3em;
            font: none 18px/24px "Microsoft YaHei UI";
            color: #9e141a;
        }

        pre {
            margin: 0;
            white-space: pre-wrap;
            white-space: -moz-pre-wrap;
            white-space: -o-pre-wrap;
            word-wrap: break-word;
        }

        /*    测试图表显示*/
        .char {
            width: 90%;
            position: absolute;
            top: 450px;
            margin-left: 5%;
            color: #28a745 !important;
        }

    </style>

</head>
<body>

<!--报告标题-->
<div class="title text-success">
    <div class="shadow-lg p-3 mb-5 bg-white rounded">核心功能测试报告</div>
</div>

<!--汇总信息-->
<div class="summary">
    <p class="text-left text-success">测试结果汇总</p>
    <div class="left">
        <ul class="list-group">
            <li class="list-group-item">
                <button type="button" class="btn btn-success">测试人员</button>
                <span class="text-dark">CooperKK</span>
            </li>
            <li class="list-group-item">
                <button type="button" class="btn btn-success">开始时间</button>
                <span class="text-dark">2025-06-08 17:24:47</span>
            </li>
            <li class="list-group-item">
                <button type="button" class="btn btn-success">执行时间</button>
                <span class="text-dark">39.285661 S</span>
            </li>
            <li class="list-group-item">
                <button type="button" class="btn btn-success">用例总数</button>
                <span class="text-dark">9</span>
            </li>


        </ul>
    </div>
    <div class="right">
        <ul class="list-group">

            <li class="list-group-item">
                <button type="button" class="btn btn-success">成功用例</button>
                <span class="text-success">9</span>
            </li>
            <li class="list-group-item">
                <button type="button" class="btn btn-danger">失败用例</button>
                <span class="text-warning">0</span>
            </li>
            <li class="list-group-item">
                <button type="button" class="btn btn-warning">错误用例</button>
                <span class="text-danger">0</span>
            </li>
            <li class="list-group-item">
                <button type="button" class="btn btn-secondary">跳过用例</button>
                <span class="text-secondary">0</span>
            </li>
        </ul>
    </div>
    <div class="desc">
        <ul class="list-group">
            <li class="list-group-item">
                <button type="button" class="btn btn-success">描述信息</button>
                <span class="text-secondary">测试包含五大controller模块的所有功能</span>
            </li>
        </ul>
    </div>
</div>

<!--测试图表-->
<div class="char">
    <p class="text-left text-success">图表展示</p>
    <div id="char2" style="width: 49%;height: 400px;float: left"></div>
    <div id="char" style="width: 49%;height: 400px ;float: left"></div>
</div>

<!--详细信息-->
<div class="test_info">

    <p class="text-left text-success">详细信息</p>
    <div class="table_data">

        <table class="table">
            <thead class="bg-success text-light">
            <tr>
                <th scope="col" style="width: 5%;padding: 0">编号</th>
                <th scope="col" style="width: 20%;padding: 0">
                    <span>用例模块</span>
                    <select id="testClass">
                        <option>所有</option>
                        
                        <option value="teststest_user_controllerpy">tests\test_user_controller.py</option>
                        
                        <option value="teststest_data_controllerpy">tests\test_data_controller.py</option>
                        
                        <option value="teststest_product_controllerpy">tests\test_product_controller.py</option>
                        
                        <option value="teststest_ui_controllerpy">tests\test_ui_controller.py</option>
                        
                        <option value="teststest_privacy_controllerpy">tests\test_privacy_controller.py</option>
                        
                    </select>
                </th>
                <th scope="col" style="width: 15%;padding: 0">测试方法</th>
                <th scope="col" style="width: 20%;padding: 0">用例描述</th>
                <th scope="col" style="width: 10%;padding: 0">执行时间</th>
                <th scope="col" style="width: 20%;padding: 0">

                    <span>执行结果</span>
                    <select id="testResult">
                        <option>所有</option>
                        <option class="text-success">成功</option>
                        <option class="text-warning">失败</option>
                        <option class="text-danger">错误</option>
                        <option class="text-info">跳过</option>
                    </select>

                </th>
                <th scope="col" style="width: 10%;padding: 0">详细信息</th>
            </tr>
            </thead>
            <tbody>
            
            <tr >


                <td>1</td>
                <td class="teststest_data_controllerpy">tests\test_data_controller.py</td>
                <td>test_factor_mining</td>
                <td>None</td>
                <td>14.013894</td>
                
                    
                    <td class="text-success">通过</td>
                    
                
                <td>
                    <button type="button" class="btn btn-success btn_info">查看详情</button>
                </td>
            </tr>
            <tr class="test_log">
                <td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all;padding: 0">
                    <div class="card">
                        <div class="card-body">
                            <ul class="nav nav-tabs" role="tablist">
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link active" data-toggle="tab" role="tab" aria-controls="home"
                                       aria-selected="true" style="padding: 0 16px">运行日志</a>
                                </li>
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link" data-toggle="tab" role="tab" aria-controls="profile"
                                       aria-selected="false" style="padding: 0 16px">调试输出</a>
                                </li>
                                
                                

                            </ul>
                            <div class="tab-content" style="height: 300px;overflow-y: auto;padding: 20px">

                                <div class="tab-pane fade show active" role="tabpanel" aria-labelledby="profile-tab">
                                    <pre style="line-height: 18px">[32mINFO    [0m app:user_controller.py:20 收到请求: POST http://localhost/user/login
[32mINFO    [0m app:user_controller.py:23 响应状态码: 200
[32mINFO    [0m app:data_controller.py:21 收到请求: POST http://localhost/data/factor
[32mINFO    [0m app:data_controller.py:24 响应状态码: 200</pre>
                                </div>
                                <div class="tab-pane fade" role="tabpanel" aria-labelledby="contact-tab">
                                    <pre style="line-height: 18px">Loaded configuration: BaseConfig
mysql+mysqlconnector://root:123456@localhost:3306/jrrg_framework_db
</pre>
                                </div>
                                
                                


                            </div>
                        </div>
                    </div>
                </td>
            </tr>
            
            <tr >


                <td>2</td>
                <td class="teststest_data_controllerpy">tests\test_data_controller.py</td>
                <td>test_advice</td>
                <td>None</td>
                <td>9.784362</td>
                
                    
                    <td class="text-success">通过</td>
                    
                
                <td>
                    <button type="button" class="btn btn-success btn_info">查看详情</button>
                </td>
            </tr>
            <tr class="test_log">
                <td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all;padding: 0">
                    <div class="card">
                        <div class="card-body">
                            <ul class="nav nav-tabs" role="tablist">
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link active" data-toggle="tab" role="tab" aria-controls="home"
                                       aria-selected="true" style="padding: 0 16px">运行日志</a>
                                </li>
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link" data-toggle="tab" role="tab" aria-controls="profile"
                                       aria-selected="false" style="padding: 0 16px">调试输出</a>
                                </li>
                                
                                

                            </ul>
                            <div class="tab-content" style="height: 300px;overflow-y: auto;padding: 20px">

                                <div class="tab-pane fade show active" role="tabpanel" aria-labelledby="profile-tab">
                                    <pre style="line-height: 18px">[32mINFO    [0m app:user_controller.py:20 收到请求: POST http://localhost/user/login
[32mINFO    [0m app:user_controller.py:23 响应状态码: 200
[32mINFO    [0m app:data_controller.py:21 收到请求: POST http://localhost/data/advice
[32mINFO    [0m app:data_controller.py:24 响应状态码: 200</pre>
                                </div>
                                <div class="tab-pane fade" role="tabpanel" aria-labelledby="contact-tab">
                                    <pre style="line-height: 18px">Loaded configuration: BaseConfig
mysql+mysqlconnector://root:123456@localhost:3306/jrrg_framework_db
保留下来的基金：
预测为 1 的股票：
</pre>
                                </div>
                                
                                


                            </div>
                        </div>
                    </div>
                </td>
            </tr>
            
            <tr >


                <td>3</td>
                <td class="teststest_privacy_controllerpy">tests\test_privacy_controller.py</td>
                <td>test_submit_rick_profile</td>
                <td>None</td>
                <td>0.208455</td>
                
                    
                    <td class="text-success">通过</td>
                    
                
                <td>
                    <button type="button" class="btn btn-success btn_info">查看详情</button>
                </td>
            </tr>
            <tr class="test_log">
                <td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all;padding: 0">
                    <div class="card">
                        <div class="card-body">
                            <ul class="nav nav-tabs" role="tablist">
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link active" data-toggle="tab" role="tab" aria-controls="home"
                                       aria-selected="true" style="padding: 0 16px">运行日志</a>
                                </li>
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link" data-toggle="tab" role="tab" aria-controls="profile"
                                       aria-selected="false" style="padding: 0 16px">调试输出</a>
                                </li>
                                
                                

                            </ul>
                            <div class="tab-content" style="height: 300px;overflow-y: auto;padding: 20px">

                                <div class="tab-pane fade show active" role="tabpanel" aria-labelledby="profile-tab">
                                    <pre style="line-height: 18px">[32mINFO    [0m app:user_controller.py:20 收到请求: POST http://localhost/user/login
[32mINFO    [0m app:user_controller.py:23 响应状态码: 200
[32mINFO    [0m app:privacy_controller.py:14 收到请求: POST http://localhost/privacy/risk-profile
[32mINFO    [0m app:privacy_controller.py:173 risk_score: 260
[32mINFO    [0m app:privacy_controller.py:183 风险评分: 260，等级: high
[32mINFO    [0m app:privacy_controller.py:190 准备更新用户属性: risk_level=high, preferred_investment=['fund', 'stocks'], preferred_horizen=medium_term
[32mINFO    [0m app:privacy_controller.py:209 更新后验证: risk_level=high, preferred_investment=['fund', 'stocks'], preferred_horizen=medium_term
[32mINFO    [0m app:privacy_controller.py:21 响应状态码: 200</pre>
                                </div>
                                <div class="tab-pane fade" role="tabpanel" aria-labelledby="contact-tab">
                                    <pre style="line-height: 18px">Loaded configuration: BaseConfig
mysql+mysqlconnector://root:123456@localhost:3306/jrrg_framework_db
</pre>
                                </div>
                                
                                


                            </div>
                        </div>
                    </div>
                </td>
            </tr>
            
            <tr >


                <td>4</td>
                <td class="teststest_product_controllerpy">tests\test_product_controller.py</td>
                <td>test_get_user_products</td>
                <td>None</td>
                <td>0.490468</td>
                
                    
                    <td class="text-success">通过</td>
                    
                
                <td>
                    <button type="button" class="btn btn-success btn_info">查看详情</button>
                </td>
            </tr>
            <tr class="test_log">
                <td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all;padding: 0">
                    <div class="card">
                        <div class="card-body">
                            <ul class="nav nav-tabs" role="tablist">
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link active" data-toggle="tab" role="tab" aria-controls="home"
                                       aria-selected="true" style="padding: 0 16px">运行日志</a>
                                </li>
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link" data-toggle="tab" role="tab" aria-controls="profile"
                                       aria-selected="false" style="padding: 0 16px">调试输出</a>
                                </li>
                                
                                

                            </ul>
                            <div class="tab-content" style="height: 300px;overflow-y: auto;padding: 20px">

                                <div class="tab-pane fade show active" role="tabpanel" aria-labelledby="profile-tab">
                                    <pre style="line-height: 18px">[32mINFO    [0m app:user_controller.py:20 收到请求: POST http://localhost/user/login
[32mINFO    [0m app:user_controller.py:23 响应状态码: 200
[32mINFO    [0m app:product_controller.py:17 收到请求: GET http://localhost/product/list
[32mINFO    [0m app:product_controller.py:20 响应状态码: 200</pre>
                                </div>
                                <div class="tab-pane fade" role="tabpanel" aria-labelledby="contact-tab">
                                    <pre style="line-height: 18px">Loaded configuration: BaseConfig
mysql+mysqlconnector://root:123456@localhost:3306/jrrg_framework_db
</pre>
                                </div>
                                
                                


                            </div>
                        </div>
                    </div>
                </td>
            </tr>
            
            <tr >


                <td>5</td>
                <td class="teststest_product_controllerpy">tests\test_product_controller.py</td>
                <td>test_add_product</td>
                <td>None</td>
                <td>0.298366</td>
                
                    
                    <td class="text-success">通过</td>
                    
                
                <td>
                    <button type="button" class="btn btn-success btn_info">查看详情</button>
                </td>
            </tr>
            <tr class="test_log">
                <td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all;padding: 0">
                    <div class="card">
                        <div class="card-body">
                            <ul class="nav nav-tabs" role="tablist">
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link active" data-toggle="tab" role="tab" aria-controls="home"
                                       aria-selected="true" style="padding: 0 16px">运行日志</a>
                                </li>
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link" data-toggle="tab" role="tab" aria-controls="profile"
                                       aria-selected="false" style="padding: 0 16px">调试输出</a>
                                </li>
                                
                                

                            </ul>
                            <div class="tab-content" style="height: 300px;overflow-y: auto;padding: 20px">

                                <div class="tab-pane fade show active" role="tabpanel" aria-labelledby="profile-tab">
                                    <pre style="line-height: 18px">[32mINFO    [0m app:user_controller.py:20 收到请求: POST http://localhost/user/login
[32mINFO    [0m app:user_controller.py:23 响应状态码: 200
[32mINFO    [0m app:product_controller.py:17 收到请求: POST http://localhost/product/add
[32mINFO    [0m app:product_controller.py:20 响应状态码: 200</pre>
                                </div>
                                <div class="tab-pane fade" role="tabpanel" aria-labelledby="contact-tab">
                                    <pre style="line-height: 18px">Loaded configuration: BaseConfig
mysql+mysqlconnector://root:123456@localhost:3306/jrrg_framework_db
{'基金代码': '517520', '基金名称': '黄金股ETF', '最新净值': 1446, '涨跌幅': 147, '涨跌额': 21, '今开净值': 1423, '最高净值': 1458, '最低净值': 1419, '昨收净值': 1425, '市盈率': None, '换手率': 297}
</pre>
                                </div>
                                
                                


                            </div>
                        </div>
                    </div>
                </td>
            </tr>
            
            <tr >


                <td>6</td>
                <td class="teststest_ui_controllerpy">tests\test_ui_controller.py</td>
                <td>test_stocklist</td>
                <td>None</td>
                <td>0.385859</td>
                
                    
                    <td class="text-success">通过</td>
                    
                
                <td>
                    <button type="button" class="btn btn-success btn_info">查看详情</button>
                </td>
            </tr>
            <tr class="test_log">
                <td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all;padding: 0">
                    <div class="card">
                        <div class="card-body">
                            <ul class="nav nav-tabs" role="tablist">
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link active" data-toggle="tab" role="tab" aria-controls="home"
                                       aria-selected="true" style="padding: 0 16px">运行日志</a>
                                </li>
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link" data-toggle="tab" role="tab" aria-controls="profile"
                                       aria-selected="false" style="padding: 0 16px">调试输出</a>
                                </li>
                                
                                

                            </ul>
                            <div class="tab-content" style="height: 300px;overflow-y: auto;padding: 20px">

                                <div class="tab-pane fade show active" role="tabpanel" aria-labelledby="profile-tab">
                                    <pre style="line-height: 18px">[32mINFO    [0m app:user_controller.py:20 收到请求: POST http://localhost/user/login
[32mINFO    [0m app:user_controller.py:23 响应状态码: 200
[32mINFO    [0m app:ui_controller.py:20 收到请求: GET http://localhost/ui/stocklist?page=1
[32mINFO    [0m app:ui_controller.py:23 响应状态码: 200</pre>
                                </div>
                                <div class="tab-pane fade" role="tabpanel" aria-labelledby="contact-tab">
                                    <pre style="line-height: 18px">Loaded configuration: BaseConfig
mysql+mysqlconnector://root:123456@localhost:3306/jrrg_framework_db
Requested page: 1
</pre>
                                </div>
                                
                                


                            </div>
                        </div>
                    </div>
                </td>
            </tr>
            
            <tr >


                <td>7</td>
                <td class="teststest_ui_controllerpy">tests\test_ui_controller.py</td>
                <td>test_get_single_stock</td>
                <td>None</td>
                <td>0.358069</td>
                
                    
                    <td class="text-success">通过</td>
                    
                
                <td>
                    <button type="button" class="btn btn-success btn_info">查看详情</button>
                </td>
            </tr>
            <tr class="test_log">
                <td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all;padding: 0">
                    <div class="card">
                        <div class="card-body">
                            <ul class="nav nav-tabs" role="tablist">
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link active" data-toggle="tab" role="tab" aria-controls="home"
                                       aria-selected="true" style="padding: 0 16px">运行日志</a>
                                </li>
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link" data-toggle="tab" role="tab" aria-controls="profile"
                                       aria-selected="false" style="padding: 0 16px">调试输出</a>
                                </li>
                                
                                

                            </ul>
                            <div class="tab-content" style="height: 300px;overflow-y: auto;padding: 20px">

                                <div class="tab-pane fade show active" role="tabpanel" aria-labelledby="profile-tab">
                                    <pre style="line-height: 18px">[32mINFO    [0m app:user_controller.py:20 收到请求: POST http://localhost/user/login
[32mINFO    [0m app:user_controller.py:23 响应状态码: 200
[32mINFO    [0m app:ui_controller.py:20 收到请求: POST http://localhost/ui/singlestock
[32mINFO    [0m app:ui_controller.py:23 响应状态码: 200</pre>
                                </div>
                                <div class="tab-pane fade" role="tabpanel" aria-labelledby="contact-tab">
                                    <pre style="line-height: 18px">Loaded configuration: BaseConfig
mysql+mysqlconnector://root:123456@localhost:3306/jrrg_framework_db
</pre>
                                </div>
                                
                                


                            </div>
                        </div>
                    </div>
                </td>
            </tr>
            
            <tr >


                <td>8</td>
                <td class="teststest_user_controllerpy">tests\test_user_controller.py</td>
                <td>test_user_query</td>
                <td>None</td>
                <td>0.200514</td>
                
                    
                    <td class="text-success">通过</td>
                    
                
                <td>
                    <button type="button" class="btn btn-success btn_info">查看详情</button>
                </td>
            </tr>
            <tr class="test_log">
                <td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all;padding: 0">
                    <div class="card">
                        <div class="card-body">
                            <ul class="nav nav-tabs" role="tablist">
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link active" data-toggle="tab" role="tab" aria-controls="home"
                                       aria-selected="true" style="padding: 0 16px">运行日志</a>
                                </li>
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link" data-toggle="tab" role="tab" aria-controls="profile"
                                       aria-selected="false" style="padding: 0 16px">调试输出</a>
                                </li>
                                
                                

                            </ul>
                            <div class="tab-content" style="height: 300px;overflow-y: auto;padding: 20px">

                                <div class="tab-pane fade show active" role="tabpanel" aria-labelledby="profile-tab">
                                    <pre style="line-height: 18px">[32mINFO    [0m app:user_controller.py:20 收到请求: POST http://localhost/user/login
[32mINFO    [0m app:user_controller.py:23 响应状态码: 200
[32mINFO    [0m app:user_controller.py:20 收到请求: GET http://localhost/user/query
[32mINFO    [0m app:user_controller.py:23 响应状态码: 200</pre>
                                </div>
                                <div class="tab-pane fade" role="tabpanel" aria-labelledby="contact-tab">
                                    <pre style="line-height: 18px">Loaded configuration: BaseConfig
mysql+mysqlconnector://root:123456@localhost:3306/jrrg_framework_db
</pre>
                                </div>
                                
                                


                            </div>
                        </div>
                    </div>
                </td>
            </tr>
            
            <tr >


                <td>9</td>
                <td class="teststest_user_controllerpy">tests\test_user_controller.py</td>
                <td>test_user_modify</td>
                <td>None</td>
                <td>0.202062</td>
                
                    
                    <td class="text-success">通过</td>
                    
                
                <td>
                    <button type="button" class="btn btn-success btn_info">查看详情</button>
                </td>
            </tr>
            <tr class="test_log">
                <td colspan="7" class="small text-muted" style=" word-wrap:break-word; word-break:break-all;padding: 0">
                    <div class="card">
                        <div class="card-body">
                            <ul class="nav nav-tabs" role="tablist">
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link active" data-toggle="tab" role="tab" aria-controls="home"
                                       aria-selected="true" style="padding: 0 16px">运行日志</a>
                                </li>
                                <li class="nav-item" role="presentation">
                                    <a class="nav-link" data-toggle="tab" role="tab" aria-controls="profile"
                                       aria-selected="false" style="padding: 0 16px">调试输出</a>
                                </li>
                                
                                

                            </ul>
                            <div class="tab-content" style="height: 300px;overflow-y: auto;padding: 20px">

                                <div class="tab-pane fade show active" role="tabpanel" aria-labelledby="profile-tab">
                                    <pre style="line-height: 18px">[32mINFO    [0m app:user_controller.py:20 收到请求: POST http://localhost/user/login
[32mINFO    [0m app:user_controller.py:23 响应状态码: 200
[32mINFO    [0m app:user_controller.py:20 收到请求: PUT http://localhost/user/modify
[32mINFO    [0m app:user_controller.py:23 响应状态码: 200</pre>
                                </div>
                                <div class="tab-pane fade" role="tabpanel" aria-labelledby="contact-tab">
                                    <pre style="line-height: 18px">Loaded configuration: BaseConfig
mysql+mysqlconnector://root:123456@localhost:3306/jrrg_framework_db
</pre>
                                </div>
                                
                                


                            </div>
                        </div>
                    </div>
                </td>
            </tr>
            

            </tbody>
        </table>
    </div>

    <div style="height: 200px"></div>
</div>


<script>
    var tbodyTr = $('tbody tr');
    var testResult = $("#testResult");
    var testClass = $("#testClass");
    <!--    用例执行详细信息显示切换-->
    $(".btn_info").click(function () {
        $(this).parent().parent().next().toggle();

    });
    // 当选择用例类之后触发
    testClass.change(function () {
        var cls = $(this).val();
        var res = testResult.val();
        elementDisplay(cls, res);
        sort()
    });
    testResult.change(function () {
        var res = $(this).val();
        var cls = testClass.val();
        elementDisplay(cls, res);
        sort()
    });

    function elementDisplay(cls, res) {
        // 用例数据的显示
        if (cls === "所有") {
            if (res === "所有") {
                tbodyTr.has('button').show();
            } else if (res === '成功') {
                tbodyTr.hide();
                tbodyTr.has('button').has('.text-success').show()

            } else if (res === '失败') {
                tbodyTr.hide();
                tbodyTr.has('button').has('.text-warning').show()

            } else if (res === '错误') {
                tbodyTr.hide();
                tbodyTr.has('button').has('.text-danger').show()

            } else if (res === '跳过') {
                tbodyTr.hide();
                tbodyTr.has('button').has('.text-info').show()
            }
        } else {
            if (res === "所有") {
                tbodyTr.hide();
                tbodyTr.has('button').has('.' + cls + '').show()
            } else if (res === '成功') {
                tbodyTr.hide();
                tbodyTr.has('button').has('.' + cls + '').has('.text-success').show()
            } else if (res === '失败') {
                tbodyTr.hide();
                tbodyTr.has('button').has('.' + cls + '').has('.text-warning').show()
            } else if (res === '错误') {
                tbodyTr.hide();
                tbodyTr.has('button').has('.' + cls + '').has('.text-danger').show()
            } else if (res === '跳过') {
                tbodyTr.hide();
                tbodyTr.has('button').has('.' + cls + '').has('.text-info').show()
            }
        }
    }

    function sort() {
        //重新排列显示序号
        // 选择所有可以见的tr
        var visibleTr = tbodyTr.filter(":visible");

        visibleTr.each(function (index, element) {
            element.firstElementChild.innerHTML = index + 1;

        })

    }

    $('.nav-tabs li').click(function () {
        $(this).find('a').addClass('active')
        $(this).siblings().find('a').removeClass('active');
        $(this).parent().next().children('.tab-content div').eq($(this).index()).addClass('active show').siblings().removeClass('active show')
    });
</script>

<script type="text/javascript">
    // 基于准备好的dom，初始化echarts实例
    var myChart = echarts.init(document.getElementById('char'));
    var myChart2 = echarts.init(document.getElementById('char2'));
    // 指定图表的配置项和数据
    option = {
        color: ['#00a10a', '#ddb518', 'rgba(204,46,41,0.73)', '#85898c'],
        tooltip: {
            trigger: 'item',
            formatter: '{a} <br/>{b}: {c} ({d}%)'
        },
        legend: {
            orient: 'vertical',
            left: 10,
            data: ['通过', '失败', '错误', '跳过']
        },
        series: [
            {
                name: '测试结果',
                type: 'pie',
                radius: ['50%', '70%'],
                avoidLabelOverlap: false,
                label: {
                    show: false,
                    position: 'center'
                },
                emphasis: {
                    label: {
                        show: true,
                        fontSize: '30',
                        fontWeight: 'bold'
                    }
                },
                labelLine: {
                    show: false
                },
                data: [
                    {value: 9, name: '通过'},
                    {value: 0, name: '失败'},
                    {value: 0, name: '错误'},
                    {value: 0, name: '跳过'}
                ]
            }
        ]
    };
    option2 = {
        tooltip: {
            formatter: '{a} <br/>{b} : {c}%'
        },
        toolbox: {
            feature: {
                restore: {},
                saveAsImage: {}
            }
        },
        series: [
            {
                name: '测试结果',
                type: 'gauge',
                detail: {formatter: '100.00%'},
                data: [{value: '100.00', name: '用例通过率'}],
                axisLine: {
                    lineStyle: {
                        color: [
                            [0.2, '#c20000'],
                            [0.8, '#ddb518'],
                            [1, '#00a10a']]
                    }
                }
            }
        ]
    };


    myChart2.setOption(option2);
    // 使用刚指定的配置项和数据显示图表。
    myChart.setOption(option);
</script>


</body>
</html>